<template>
  <div id="wrapper">
    <h1>welcome to electron-vue</h1>
    <!-- <p class="back_btn" @click="to_qq">tencent咨询</p> -->
    <p class="back_btn" @click="back">返回上一页</p>
  </div>
</template>

<script>
  import http from '@/utils/http'
  export default {
    name: 'landing-page',
    methods: {
      open (link) {
        this.$electron.shell.openExternal(link)
      },
      back () {
        history.go(-1)
      },
      to_qq(){
        window.location.href="mqqwpa://im/chat?chat_type=wpa&uin=3173631086&version=1&src_type=web&web_src=oicqzone.com"
      }
    },
    created(){
      
      http.post('http://testapi.xyqqsm.com/hmldsc/user/queryUserInfo',{})
      .then(res=>{
        console.log(res)
      })
    }
  }
</script>

<style>
  @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');

  body { font-family: 'Source Sans Pro', sans-serif; }

  #wrapper {
    background:
      radial-gradient(
        ellipse at top left,
        rgba(255, 255, 255, 1) 40%,
        rgba(229, 229, 229, .9) 100%
      );
    height: 100vh;
    padding: 60px 80px;
    width: 100vw;
  }

  .back_btn{
    border:1px solid #ddd;
    border-radius:20px;
    padding:10px 0;
    text-align: center;
    cursor:pointer;
  }


</style>
